package net.zjitc.service.Impl;

import net.zjitc.mapper.UserMapper;
import net.zjitc.pojo.User;
import net.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author admin
 * @Date 2019/5/21 9:00
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User user_login(String telephone, String password) {
        return userMapper.user_login(telephone,password);
    }

    @Override
    public User search_tel(String telephone) {
        return userMapper.search_tel(telephone);
    }

    @Override
    public void user_register(User user) {
        userMapper.user_register(user);
    }
}
